package cn.gson.springboot.model.mapper;

import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import com.alibaba.fastjson.JSONArray;

@Mapper
public interface IllnessRecordMappers {

	//新增病程记录
	public void AddIllnessRecord(@Param("docdetails_id") Integer docdetailsid,
			@Param("day_id") Integer dayid,
			@Param("hosp_id") String hospid,
			@Param("ill_operator") String illoperator,
			@Param("ill_drugcount") String illdrugcount,
			@Param("ill_hz") String illhz);
	
	//查询病程记录
	public JSONArray selectNessRecordAll(@Param("cname") String cname);

	
	//查询当天的病程记录
	public JSONArray selectTradayNessRecordAll();
	
	//修改病程记录的日结单外键
	public void updateNessRecordDay(@Param("dayid") Integer dayid,
			@Param("illid") Integer illid);
}
